﻿import React from 'react';
import { Form, Input, Row, Col, Button, DatePicker,Icon, Select,Timeline,Spin } from 'antd';
import './index.less'
import classNames from 'classnames';
const FormItem = Form.Item;
const Option = Select.Option;

class OrderTimeLine extends React.Component {

	constructor(props){
		super(props);
	}

	render() {
    let { timeLines, loading } = this.props;

		let container = (null);

    container = timeLines.map((timeLine) => {
      return (
          <Timeline.Item key={timeLine}>{timeLine}</Timeline.Item>
      );
    });

    return (
      <Spin spinning={loading}>
        <Timeline>
        {container}
          </Timeline>
      </Spin>
    );
	}
}

export default OrderTimeLine;
